package com.nuanshui.framework.utils;

/**
 * 位操作比较
 * Created by zxh on 2016/11/21.
 */
public class FlagOperationFactory {

    private static IFlagOperation resultFlagOperation=new ResultFlagOperation();
    private static IFlagOperation posFlagOperation=new PosFlagOperation();

    /**
     * 直接比较位结果值大小
     * @return
     */
    public static IFlagOperation getResultOp()
    {
        return resultFlagOperation;
    }

    /**
     * 比较位的索引值
     * @return
     */
    public static IFlagOperation getPosOp()
    {
        return posFlagOperation;
    }
}
